-- GENERATED SPELL FOR [Blackwing Legionnaire] --


function spell0_12416(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12416', 557, 1)
end

function spell1_12416(pUnit, Event) --@Dragonbane,n/a--
pUnit:FullCastSpellOnTarget(23967,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12416', 550, 1)
end

function spell2_12416(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12416', 604, 1)
end

function Sorts_12416(pUnit, Event)
local choix_sorts_12416 = math.random(0, 2)
if choix_sorts_12416 == 0 then
pUnit:RegisterEvent('spell0_12416', 1, 1)
end
if choix_sorts_12416 == 1 then
pUnit:RegisterEvent('spell1_12416', 1, 1)
end
if choix_sorts_12416 == 2 then
pUnit:RegisterEvent('spell2_12416', 1, 1)
end
end

function mob12416_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12416', math.random(1500, 3000), 1)
end

function mob12416_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12416_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12416_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12416, 1, 'mob12416_Action')
RegisterUnitEvent(12416, 2, 'mob12416_Leave')
RegisterUnitEvent(12416, 3, 'mob12416_Kill')
RegisterUnitEvent(12416, 4, 'mob12416_Die')
